<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/




//后台首页
Route::get('/', 'UserController@index')->name('home');

Route::get('time', 'HomeController@time');

//用户auth注册登录中间件
// Auth::routes();

Route::get('login', 'SessionsController@create')->name('login');
Route::post('login', 'SessionsController@store')->name('login');
Route::delete('logout', 'SessionsController@destroy')->name('logout');

//创建用户
Route::post('user/add','SessionsController@createadd');

//系统安全修改密码
Route::post('admin/updatepwd','SessionsController@updpwd');

Route::get('user/update/admin','SessionsController@uppwd');


//用户管理集合
Route::resource('user','UserController');

//搜索用户
Route::post('user/list','HomeController@userlist');

//后台用户操作
Route::resource('admin/user','AdminController');

//服务列表集合
Route::resource('serve','ServeController');


//服务详情页
// Route::get('serve/details/{sid}','HomeController@serve_details');

//生成虚假数据
Route::get('app','HomeController@app');

//服务须知
Route::resource('app/notice','OnticeController');

//APP页面管理
// Route::resource('app/m','AppController');
Route::get('app/m','AppController@index');

Route::post('app/m/update','AppController@update');

//Banner集合
Route::resource('app/banner','BannerController');

//类目管理
Route::resource('app/leimu','ClassServeController');

//精品推荐
Route::resource('app/jingpin','JingPinController');

//热门服务
Route::resource('app/remen','HotController');

//帮助中心资源
Route::resource('app/help','HelpController');

//消息推送
Route::resource('app/news','NewsController');

//客服设置
Route::resource('app/kefu','KefuController');

//关于我们
Route::resource('app/about','AboutController');

//充值会员订单
Route::resource('app/user/vip','UserVipController');

//订单管理 待付款
Route::resource('app/order/stay','StayController');

//订单管理 已预约
Route::resource('app/order/make','MakeController');

//订单管理 取消预约
Route::resource('app/order/cancel','CancelController');

//订单管理 已取消
Route::resource('app/order/evaluate','EvaluateController');

//版本启动
Route::resource('app/set','SetController');



